package 设计模式.工厂模式;

import lombok.extern.slf4j.Slf4j;
import org.junit.Test;

/**
 * @author zhoujie
 * @date 2020-07-31
 */
@Slf4j
public class MainTest {
    @Test
    public void test01(){
        Car car = CarFactory.FordCar.createCar();
        Car car2 = CarFactory.of(CarFactory.BuickCar);
        car.run();
        car2.run();
    }
}


